// by Xeno
private ["_vehicle", "_poss"];
#include "x_setup.sqf"

x_sm_pos = [[6209.0112,1737.5458,0], [6300.0112,1800.5458,0], [6100.0112,1650.5458,0]]; // index: 4,   Water tower (chemical weapons) factory near Solnichniy
x_sm_type = "normal"; // "convoy"

#ifdef __SMMISSIONS_MARKER__
if (true) exitWith {};
#endif

if (X_Client) then {
	d_current_mission_text = "The enemy is producing chemical weapons in a factory near Vorwerk. Find the container that has some of the chemical for the production and destroy it.";
	d_current_mission_resolved_text = "Good job. The container is destroyed.";
};

if (isServer) then {
	__PossAndOther
	_pos_other2 = x_sm_pos select 2;
	_vehicle = "Misc_Cargo1B_military" createvehicle (_poss);
	_vehicle setDir 255;
#ifndef __TT__
	[_vehicle] execFSM "fsms\XCheckSMHardTarget.fsm";
#else
	[_vehicle] execFSM "fsms\XCheckSMHardTargetTT.fsm";
#endif
	sleep 2.123;
	["specops", 1, "basic", 4, _pos_other,80,false] spawn XCreateInf;
	sleep 2.123;
	["shilka", 0, "bmp", 0, "tank", 1, _pos_other2,1,100,false] spawn XCreateArmor;
	__AddToExtraVec(_vehicle)
};